package com.erp.erpboot.mapper;

import com.erp.erpboot.pojo.Vendor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component(value = "VendorMapper")
public interface VendorMapper {
    public int add(Vendor vendor);

    public void delete(int id);

    public void deleteList(List<Integer> ids);

    public Vendor get(int id);

    public int update(Vendor vendor);

    public List<Vendor> list();

    public int count();

    public List<Vendor> listByPage(@Param("pageSize")int pageSize, @Param("pageIndex")int pageIndex);

    public List<Vendor> getByParentID(int iParentID);
}
